using UnityEngine;
using System.Collections;

[System.Serializable]
public class ToggleFlashlight : MonoBehaviour {
	public Light lightToToggle;

	// Use this for initialization
	void Start () {
	}
	
	// Update is called once per frame
	void Update () {
		if (Input.GetKeyUp("f")) {
			lightToToggle.enabled = !lightToToggle.enabled;	
		}
	}
}
